import axios from '@/util'; 

import type {
  createRechargeCreditsCardsInfoDto_,
  createRechargeCreditsCardsInfoDto,
  chongZhiEntityListDto,
  duiHuanEntity,
  chongZhiEntity,
  JieSuoJinEEntity,
  duiHuanEntityListDto,
} from './typings';



/**
 *  POST /api/diamond
 */
export async function post_api_diamond (
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/diamond`,
    ...(options || {}),
  })
}

/**
 * 创建钻石列表 PUT /api/diamond/createRechargeCreditsCardsInfo
 */
export async function put_api_diamond_createrechargecreditscardsinfo (
  data: {
    /**  */
    list?: createRechargeCreditsCardsInfoDto___;
    /**  */
    total?: number;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'PUT',
    url: `/api/diamond/createRechargeCreditsCardsInfo`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 获取钻石列表 GET /api/diamond/rechargeCreditsCardsInfo
 */
export async function get_api_diamond_rechargecreditscardsinfo (
  options?: Record<string, any>,
): Promise<createRechargeCreditsCardsInfoDto> {
  return axios({
    method: 'GET',
    url: `/api/diamond/rechargeCreditsCardsInfo`,
    ...(options || {}),
  })
}

/**
 * 获取充值历史记录 GET /api/diamond/chongZhiJiLu
 */
export async function get_api_diamond_chongzhijilu (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
    /**  */
    email: any;
  },
  options?: Record<string, any>,
): Promise<chongZhiEntityListDto> {
  return axios({
    method: 'GET',
    url: `/api/diamond/chongZhiJiLu`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 兑换钻石 PUT /api/diamond/duiHuan
 */
export async function put_api_diamond_duihuan (
  data: {
    /** duoShaoZuanShi */
    duoShaoZuanShi?: number;
  },
  options?: Record<string, any>,
): Promise<duiHuanEntity> {
  return axios({
    method: 'PUT',
    url: `/api/diamond/duiHuan`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 充值钻石 PUT /api/diamond/chongZhi
 */
export async function put_api_diamond_chongzhi (
  data: {
    /** duoShaoZuanShi */
    duoShaoZuanShi?: number;
  },
  options?: Record<string, any>,
): Promise<chongZhiEntity> {
  return axios({
    method: 'PUT',
    url: `/api/diamond/chongZhi`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 设置解锁金额 PUT /api/diamond/setJieSuoJinE
 */
export async function put_api_diamond_setjiesuojine (
  data: {
    /** 解锁金额 */
    jinE?: number;
  },
  options?: Record<string, any>,
): Promise<JieSuoJinEEntity> {
  return axios({
    method: 'PUT',
    url: `/api/diamond/setJieSuoJinE`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 获取解锁金额 GET /api/diamond/getJieSuoJinE
 */
export async function get_api_diamond_getjiesuojine (
  options?: Record<string, any>,
): Promise<JieSuoJinEEntity> {
  return axios({
    method: 'GET',
    url: `/api/diamond/getJieSuoJinE`,
    ...(options || {}),
  })
}

/**
 * 获取兑换历史记录 GET /api/diamond/duiHuanJiLu
 */
export async function get_api_diamond_duihuanjilu (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
    /**  */
    email: any;
  },
  options?: Record<string, any>,
): Promise<duiHuanEntityListDto> {
  return axios({
    method: 'GET',
    url: `/api/diamond/duiHuanJiLu`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
